provider Events GET /api/0/organizations/{organization_id_or_slug}/issues/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/issues/
List an Organization's Issues
Return a list of issues for an organization. All parameters are supplied as query string parameters. A default query of `is:unresolved` is applied. To return all results, use an empty query value (i.e. ``?query=`).
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
environment query
The name of environments to filter by.
array
project query
The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`
array
statsPeriod query
The period of time for the query, will override the start & end parameters, a number followed by one of: - `d` for days - `h` for hours - `m` for minutes - `s` for seconds - `w` for weeks For example, `24h`, to mean query data starting from 24 hours ago to now.
string
start query
The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
string
end query
The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
string
groupStatsPeriod query
The timeline on which stats for the groups should be presented.
enum: , 14d, 24h, auto
shortIdLookup query
If this is set to `1` then the query will be parsed for issue short IDs. These may ignore other filters (e.g. projects), which is why it is an opt-in.
enum: 0, 1
query query
An optional search query for filtering issues. A default query will apply if no view/query is set. For all results use this parameter with an empty string.
string
viewId query
The ID of the view to use. If no query is present, the view's query and filters will be applied.
string
sort query
The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`).
enum: date, freq, inbox, new…
limit query
The maximum number of issues to affect. The maximum is 100.
integer
expand query
Additional data to include in the response.
array
collapse query
Fields to remove from the response to improve query performance.
array
cursor query
A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

listAnOrganizationSIssues
GET/api/0/organizations/{organization_id_or_slug}/issues/
Return a list of issues for an organization. All parameters are supplied as query string parameters. A default query of `is:unresolved` is applied. To return all results, use an empty query value (i.e. ``?query=`).

Parameters

required

The ID or slug of the organization the resource belongs to.

The name of environments to filter by.

The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`

The period of time for the query, will override the start & end parameters, a number followed by one of: - `d` for days - `h` for hours - `m` for minutes - `s` for seconds - `w` for weeks For example, `24h`, to mean query data starting from 24 hours ago to now.

The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.

The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.

The timeline on which stats for the groups should be presented.

If this is set to `1` then the query will be parsed for issue short IDs. These may ignore other filters (e.g. projects), which is why it is an opt-in.

An optional search query for filtering issues. A default query will apply if no view/query is set. For all results use this parameter with an empty string.

The ID of the view to use. If no query is present, the view's query and filters will be applied.

The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`).

The maximum number of issues to affect. The maximum is 100.

Additional data to include in the response.

Fields to remove from the response to improve query performance.

A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.listAnOrganizationSIssues({
  "query": "is:unresolved",
  "sort": "date",
  "limit": 100
})